<?xml version="1.0" encoding="utf-8" ?>
<Mapping xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<Entity type="Person" table="Person">
		<Id field="Id" >
			<Generator name="native" >
				<Property name="dbType">Int32</Property>
				<Property name="seed">10</Property>
				<Property name="increment">2</Property>
			</Generator>
		</Id>
		<Attribute name="Age" field="Age" type="System.Int32" db-type="Int32" />
		<Attribute name="Lastname" field="Lastname" type="System.String" db-type="AnsiString" size="255" />
		<Attribute name="Firstname" field="Firstname" type="System.String" db-type="AnsiString" size="255" />
		<Attribute name="Acceleration" field="Acceleration" type="System.Decimal" db-type="Decimal" scale="14" precision="28"/>
		
		<Reference name="Prout" entityChild="Person" discriminator="Role">
			<Rule parentField="Id" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="Id" />
		</Reference>
		
		<Reference name="Partners" entityChild="Person" discriminator="Role">
			<Rule parentField="Id" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="Id" />
		</Reference>
		
		<Reference name="Brother" entityChild="Person" discriminator="Role">
			<Rule parentField="Id" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="Id" />
		</Reference>
		
		<Reference name="Friends" entityChild="Thing" discriminator="Role">
			<Rule parentField="Id" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Thing" childField="Id" />
		</Reference>
		
		<Reference name="MyCompany" entityChild="Company" discriminator="Role">
			<Rule parentField="Id" childTable="MyCompany" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Company" childField="Id" />
		</Reference>
	</Entity>
	
	<Entity type="Thing" table="Thing">
		<Id field="Id" >
			<Generator name="native" >
				<Property name="dbType">Int32</Property>
				<Property name="seed">10</Property>
				<Property name="increment">2</Property>
			</Generator>
		</Id>
		<Attribute name="Firstname" field="Firstname" type="System.String" db-type="AnsiString" size="255" />
		<Attribute name="Lastname" field="Lastname" type="System.String" db-type="AnsiString" size="255" />
	</Entity>
	
	<Entity type="Manager" table="Manager">
		<Id field="Id" >
			<Generator name="assigned" >
				<Property name="dbType">Int32</Property>
			</Generator>
		</Id>
		<Reference name="MyCompany" entityChild="Company">
			<Rule parentField="FK_Company" childTable="Company" childField="Id" />
		</Reference>
	</Entity>
	
	<Entity type="Company" table="Company">
		<Id field="Id" >
			<Generator name="guid" >
			</Generator>
		</Id>
		<Attribute name="Name" field="Name" type="System.String" db-type="AnsiString" size="255" />
	</Entity>
</Mapping>